﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="targykezeles.aspx.cs" Inherits="NEMProjectWebApp.Pages.Admin.targykezeles" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style3
        {
            width: 90px;
        }
        .style4
        {
            width: 286px;
        }
        .style5
        {
            width: 162px;
        }
        .style6
        {
            width: 50px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table style="width: 99%;">
        <tr>
            <td class="style3">
                <asp:Label ID="Label1" runat="server" Text="Oktató neve:"></asp:Label>
            </td>
            <td class="style4">
                <asp:DropDownList ID="OktatokDropDownList" runat="server" Width="301px" DataSourceID="SqlDataSource"
                    DataTextField="Nev" DataValueField="User_ID" AutoPostBack="True">
                </asp:DropDownList>
                <asp:SqlDataSource ID="SqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:masterConnectionString %>"
                    
                    SelectCommand="SELECT User_ID, cast(User_ID as varchar(3))+' - '+VezNev +' '+ KerNev AS Nev FROM Felhasznalo WHERE (FelhasznJogkorei_ID = 3)"></asp:SqlDataSource>
            </td>
            <td class="style5">
                <asp:Label ID="Label3" runat="server" Text="Tárgy kezdete (óra perc):"></asp:Label>
            </td>
            <td class="style6">
                <asp:TextBox ID="KoraTextBox" runat="server" MaxLength="2" Width="50px"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="KpercTextBox" runat="server" MaxLength="2" Width="50px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style3">
                <asp:Label ID="Label2" runat="server" Text="Tárgy neve:"></asp:Label>
            </td>
            <td class="style4">
                <asp:TextBox ID="UjTargyTextBox" runat="server" Width="301px"></asp:TextBox>
            </td>
            <td class="style5">
                <asp:Label ID="Label4" runat="server" Text="Tárgy vége (óra perc):"></asp:Label>
                &nbsp;
            </td>
            <td class="style6">
                <asp:TextBox ID="VoraTextBox" runat="server" MaxLength="2" Width="50px"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="VpercTextBox" runat="server" MaxLength="2" Width="50px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label6" runat="server" Text="Tárgy leírása:"></asp:Label>
            </td>
            <td colspan="2">
                <asp:TextBox ID="TargyLeirasTextBox" runat="server" Height="70px" TextMode="MultiLine"
                    Width="465px"></asp:TextBox>
            </td>
        </tr>
    </table>
    <asp:Button ID="Button1" runat="server" Text="Adatok mentése a rendszerbe" Width="300px"
        OnClick="Button1_Click" />
    <br />
    <asp:Label ID="Label5" runat="server" Text="Tárgyak:"></asp:Label>
    <br />
    <asp:ListBox ID="TargyakListBox" runat="server" Width="675px" DataSourceID="SqlDataSource1"
        DataTextField="TargyNeve" DataValueField="T_ID"></asp:ListBox>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:masterConnectionString %>"
        SelectCommand="SELECT Targy.* FROM Targy,UserTargyKapcs where UserTargyKapcs.Targy_ID = Targy.T_ID and UserTargyKapcs.User_ID = 687"></asp:SqlDataSource>
    <asp:Button ID="Button2" runat="server" Text="Kijelölt tárgy törlése a rendszerből"
        Width="300px" OnClick="Button2_Click" />
</asp:Content>
